/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1ticketapp;

import java.util.ArrayList;

/**
 *
 * @author apple
 */
public class TicketBox extends ArrayList<Ticket>
{
    public double getTotalPrice()
    {
        double sum=0;
        for(Ticket tk:this)
        {
            sum=sum+tk.singlePrice();
        }
        return sum;
    }
}
